package com.cungmua.app.model.request;

import com.cungmua.app.utils.AppUtils;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 6/16/14.
 */
public class CityRequest extends AuthenticatedRequest {
    public static final int SELLING = 1;
    public static final int SHIPPING = 2;
    public static final int NATIONAL = 3;

    private int cityType;
    private int currentCity;

    public CityRequest(String deviceId, String token) {
        super(deviceId, token);
    }

    @JsonProperty("Type")
    public int getCityType() {
        return cityType;
    }

    public void setCityType(int cityType) {
        this.cityType = cityType;
    }

    @Override
    public String getSign() {
        return AppUtils.MD5("city" + getVersion() + getDeviceId() + getToken());
    }

    @JsonProperty("CurrentCity")
    public int getCurrentCity() {
        return currentCity;
    }

    public void setCurrentCity(int currentCity) {
        this.currentCity = currentCity;
    }
}
